﻿<%@ Page Title="" Language="C#" MasterPageFile="~/master/public-regular.master" AutoEventWireup="true"
    CodeFile="Gift-Certificates.aspx.cs" Inherits="Gift_Certificates" MaintainScrollPositionOnPostback="true" %>

<%@ Register  Namespace="ECommerce.Library.Web" TagPrefix="ucc" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolderNestedHeader"
    runat="Server">
</asp:Content>
<asp:Content ID="cntContent" ContentPlaceHolderID="cphMiddleContent" runat="Server">
    <div class="regular-pages inline">
        <asp:ValidationSummary ID="ValidationSummary1" HeaderText="You have missed the following item(s)"
            ShowMessageBox="false" ShowSummary="false" runat="server" />
        <ucc:ResponseMessage ID="rpGiftCertificate" runat="server"></ucc:ResponseMessage>
        <fieldset class="floated-labels">
            <label>
                Amount</label>
            <asp:TextBox ID="tbAmount" runat="server" Width="50px" CssClass="text"></asp:TextBox>
            <asp:RequiredFieldValidator ID="rfvAmount" ControlToValidate="tbAmount" Display="Dynamic"
                runat="server" ErrorMessage="*Required" SetFocusOnError="True"></asp:RequiredFieldValidator>
            <asp:RegularExpressionValidator ID="revAmount" runat="server" ControlToValidate="tbAmount"
                ErrorMessage="Amount should be numeric" Display="Dynamic" ValidationExpression="^[0-9]*[.]?[0-9]{0,2}$"
                SetFocusOnError="True"></asp:RegularExpressionValidator>
            <br />
            <label>
                Quantity</label>
            <asp:TextBox ID="tbQuantity" runat="server" Width="50px" CssClass="text"></asp:TextBox>
            <asp:RequiredFieldValidator ID="rfvTextBoxQuantity" ControlToValidate="tbQuantity"
                Display="Dynamic" runat="server" SetFocusOnError="True" ErrorMessage="*Required"></asp:RequiredFieldValidator>
            <asp:RegularExpressionValidator ID="revTextBoxQuantity" runat="server" ControlToValidate="tbQuantity"
                ErrorMessage="Quantity should be whole number" Display="Dynamic" ValidationExpression="^[0-9]*$"
                SetFocusOnError="True"></asp:RegularExpressionValidator>
        </fieldset>
        <fieldset class="floated-labels">
            <legend>Please complete the form and enter your personalized message below. </legend>
            <label>
                From Email</label>
            <asp:TextBox ID="tbFromEmail" runat="server" Width="200px" CssClass="text"></asp:TextBox>
            <asp:RequiredFieldValidator ID="rfvTextBoxEmail" ControlToValidate="tbFromEmail"
                Display="Dynamic" runat="server" ErrorMessage="*Required" SetFocusOnError="True"></asp:RequiredFieldValidator>
            <asp:RegularExpressionValidator ID="revTextBoxEmail" runat="server" ControlToValidate="tbFromEmail"
                ErrorMessage="Invalid Email address" Display="Dynamic" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"
                SetFocusOnError="True"></asp:RegularExpressionValidator>
            <br />
            <label>
                From Name</label>
            <asp:TextBox runat="server" ID="tbFromName" ErrorMessage="Required" Width="200px"
                CssClass="text"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="tbFromName"
                Display="Dynamic" ErrorMessage="*Required" SetFocusOnError="True"></asp:RequiredFieldValidator>
            <br />
            <label>
                To Email</label>
            <asp:TextBox ID="tbToEmail" Width="200px" runat="server" CssClass="text"></asp:TextBox>
            <asp:RequiredFieldValidator ID="rfvTextBoxToAddess" ControlToValidate="tbToEmail"
                Display="Dynamic" runat="server" ErrorMessage="*Required" SetFocusOnError="True"></asp:RequiredFieldValidator>
            <asp:RegularExpressionValidator ID="revTextBoxToAddess" runat="server" ControlToValidate="tbToEmail"
                ErrorMessage="Invalid Email address" Display="Dynamic" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"
                SetFocusOnError="True"></asp:RegularExpressionValidator>
            <br />
            <label>
                To Name</label>
            <asp:TextBox runat="server" ID="tbToName" ErrorMessage="Required" Width="200px" CssClass="text"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="tbToName"
                ErrorMessage="*Required" Display="Dynamic" SetFocusOnError="True"></asp:RequiredFieldValidator>
            <br />
            <label style="padding-bottom: 5px;">
                Message
            </label>
            <asp:TextBox ID="tbMessege" runat="server" CssClass="text" Width="98%" Height="150px"
                TextMode="MultiLine"></asp:TextBox>
        </fieldset>
        <div class="btn-place-holder btn-place-holder-multiple">
            <asp:Button runat="server" ID="ButtonSubmit" CssClass="button medium orange" Text="Add To Cart"
                OnClick="ButtonSubmit_Click" CausesValidation="true" />
            <asp:Button runat="server" ID="ButtonCheckOut" CssClass="button medium green" Text="CHECKOUT"
                OnClick="ButtonCheckOut_Click" CausesValidation="false" Visible="false" />
        </div>
    </div>
</asp:Content>
